#ifndef QXPDFREPORT_H
#define QXPDFREPORT_H

#include <QObject>
#include <QPdfWriter>
#include <QPainter>

class QXPdfReport : public QObject
{
    Q_OBJECT
public:
    explicit QXPdfReport(QObject *parent = nullptr);

    bool exportFile(QString fileName);

signals:

private:
    QPdfWriter* m_pPdfWriter;
    QPainter* m_pPdfPainter;

private:
    // 计算行高
    void computeRowHeight();


};

#endif // QXPDFREPORT_H
